<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!--三种状态 pending resolve(fulfilled) reject(rejected) -->
    <script>
    const p=new Promise((resolve,reject)=>{
        //Promise对象创建时,先执行创建对象内部的对象
    console.log('P')
    })
    </script>
</body>
</html>